package com.jiangfeixiang.markdown.service.impl;

import com.jiangfeixiang.markdown.dao.ContentMapper;
import com.jiangfeixiang.markdown.entity.Content;
import com.jiangfeixiang.markdown.service.ContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 姜飞祥
 * @Description:
 * @Date: Create in 2019/1/29/0029 13:52
 * @param: $params$
 * @return: $returns$
 */
@Service
public class ContentServiceImpl implements ContentService {

    @Autowired
    private ContentMapper contentMapper;

    /**
     * 查询
     * @return
     */
    @Override
    public List<Content> getText() {
        return contentMapper.getText();
    }

    /**
     * 添加
     * @param content
     * @return
     */
    @Override
    public int addText(Content content) {
        return contentMapper.addText(content);
    }
}
